import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import echarts from './views/charts/echarts.vue'
import Department from "./views/org/Department";
import Employee from "./views/org/Employee";
import DictionaryType from "./views/system/DictionaryType";
import DictionaryDetail from "./views/system/DictionaryDetail";
import ShopRegister from "./views/ShopRegister";
import Shop from "./views/org/Shop";
import SearchMasterMsgPending from "./views/pet/SearchMasterMsgPending";
import SearchMasterMsgProcessed from "./views/pet/SearchMasterMsgProcessed";
import Pet from "./views/pet/Pet";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: '报表' },
        ]
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '组织机构管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/department', component: Department, name: '部门管理' },
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/shop', component: Shop, name: '店铺管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/dictionarytype', component: DictionaryType, name: '数据字典' },
            { path: '/dictionarydetail', component: DictionaryDetail, name: '数据字典明细' },
            { path: '/3', component: Form, name: '店铺管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '宠物模块',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/searchMasterMsgPending', component: SearchMasterMsgPending, name: '待处理宠物' },
            { path: '/searchMasterMsgProcessed', component: SearchMasterMsgProcessed, name: '已处理宠物' },
            { path: '/pet', component: Pet, name: '宠物管理' },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;